package com.stud.business.qb.domain;

import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.stud.common.annotation.Excel;
import com.stud.common.core.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.SqlCondition;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * 答题历史对象 q_answer_history
 *
 * @author Stud
 * @date 2024-03-08
 */
@Schema(description = "答题历史")
@Getter
@Setter
@TableName("q_answer_history")
public class QAnswerHistory extends BaseEntity{

    @Excel(name = "学生ID")
    @Schema(description = "studentId")
    private Long studentId;

    @Excel(name = "老师ID")
    @Schema(description = "teacherId")
    private Long teacherId;

    @Excel(name = "作业ID")
    @Schema(description = "homeworkId")
    private Long homeworkId;

    @Excel(name = "学生作业ID")
    @Schema(description = "studentHomeworkId")
    private Long studentHomeworkId;

    @Excel(name = "学生作业问题ID")
    @Schema(description = "studentHomeworkQuestionId")
    private Long studentHomeworkQuestionId;

    @Excel(name = "题库ID")
    @Schema(description = "bankId")
    private Long bankId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "答题时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "answerTime")
    private LocalDateTime answerTime;

    @Excel(name = "是否正确")
    @Schema(description = "correct")
    private Integer correct;

    @Excel(name = "得分")
    @Schema(description = "score")
    private Long score;

    @Excel(name = "间隔编码")
    @Schema(description = "intervalCode")
    private String intervalCode;

    @TableField(condition = SqlCondition.LIKE)
    @Excel(name = "间隔名称")
    @Schema(description = "intervalName")
    private String intervalName;

    @Excel(name = "间隔天数")
    @Schema(description = "intervalDay")
    private Long intervalDay;

}
